import { myRequest } from "../../api/myRequest";

export default {
  // 执行事件
  queryEquipmentCheckTemByEquId(params) {
    return myRequest({
      url: "/tz/inspection/queryEquipmentCheckTemByEquId",
      method: "post",
      data: params,
    });
  },
  queryEquipmentSpotTemByEquId(params) {
    return myRequest({
      url: "/tz/inspection/queryEquipmentSpotTemByEquId",
      method: "post",
      data: params,
    });
  },
  queryEquipmentMaintainTemByEquId(params) {
    return myRequest({
      url: "/tz/inspection/queryEquipmentMaintainTemByEquId",
      method: "post",
      data: params,
    });
  },
  
  executeCheckPlan(params) {
    return myRequest({
      url: "/tz/inspection/executeCheckPlan",
      method: "post",
      data: params,
    });
  },
  executeSpotPlan(params) {
    return myRequest({
      url: "/tz/inspection/executeSpotPlan",
      method: "post",
      data: params,
    });
  },
  executeMaintainPlan(params) {
    return myRequest({
      url: "/tz/inspection/executeMaintainPlan",
      method: "post",
      data: params,
    });
  },
  approveCheckPlan(params) {
    return myRequest({
      url: "/tz/inspection/approveCheckPlan",
      method: "post",
      data: params,
    });
  },
  approveSpotPlan(params) {
    return myRequest({
      url: "/tz/inspection/approveSpotPlan",
      method: "post",
      data: params,
    });
  },
  approveMaintainPlan(params) {
    return myRequest({
      url: "/tz/inspection/approveMaintainPlan",
      method: "post",
      data: params,
    });
  },
  workCheckReport(params) {
    return myRequest({
      url: "/tz/inspection/workCheckReport",
      method: "post",
      data: params,
    });
  },
  addCheckKnowledge(params) {
    return myRequest({
      url: "/tz/inspection/addCheckKnowledge",
      method: "post",
      data: params,
    });
  },
  workSpotReport(params) {
    return myRequest({
      url: "/tz/inspection/workSpotReport",
      method: "post",
      data: params,
    });
  },
  addSpotKnowledge(params) {
    return myRequest({
      url: "/tz/inspection/addSpotKnowledge",
      method: "post",
      data: params,
    });
  },
  workMaintainReport(params) {
    return myRequest({
      url: "/tz/inspection/workMaintainReport",
      method: "post",
      data: params,
    });
  },
  addMaintainKnowledge(params) {
    return myRequest({
      url: "/tz/inspection/addMaintainKnowledge",
      method: "post",
      data: params,
    });
  },
  queryEquipPointByEquId(params) {
    return myRequest({
      url: "/tz/equipPoint/queryEquipPointByEquId",
      method: "post",
      data: params,
    });
  },
  addCollectionPoint(params) {
    return myRequest({
      url: "/tz/equipPoint/addCollectionPoint",
      method: "post",
      data: params,
    });
  },
  querySpecificationByProductId(params) {
    return myRequest({
      url: "/tz/specification/querySpecificationByProductId",
      method: "post",
      data: params,
    });
  },
  addTechnologyParams(params) {
    return myRequest({
      url: "/tz/specification/addTechnologyParams",
      method: "post",
      data: params,
    });
  },

  queryLaboratoryByProductId(params) {
    return myRequest({
      url: "/tz/specification/queryLaboratoryByProductId",
      method: "post",
      data: params,
    });
  },
  addLaboratoryParams(params) {
    return myRequest({
      url: "/tz/specification/addLaboratoryParams",
      method: "post",
      data: params,
    });
  },
  statisticsByProduct(params) {
    return myRequest({
      url: "/tz/report/statisticsByProduct",
      method: "post",
      data: params,
    });
  },
  statisticsByEquip(params) {
    return myRequest({
      url: "/tz/report/statisticsByEquip",
      method: "post",
      data: params,
    });
  },
  isEquipHasContent(params) {
    return myRequest({
      url: "/tz/equipPoint/isEquipHasContent",
      method: "post",
      data: params,
    });
  },
  isProductHasContent(params) {
    return myRequest({
      url: "/tz/specification/isProductHasContent",
      method: "post",
      data: params,
    });
  },
  queryTime(params) {
    return myRequest({
      url: "/tz/issueEscalation/queryTime",
      method: "post",
      data: params,
    });
  },
  escalation(params) {
    return myRequest({
      url: "/tz/issueEscalation/escalation",
      method: "post",
      data: params,
    });
  },
  syncData(params) {
    return myRequest({
      url: "/tz/issueEscalation/sync",
      method: "post",
      data: params,
    });
  },
  impData(params) {
    return myRequest({
      url: "/tz/lab/impData",
      method: "post",
      data: params,
    });
  },
  addBatch(params) {
    return myRequest({
      url: "/tz/issueEscalation/addBatch",
      method: "post",
      data: params,
    });
  },
  eliminate(params) {
    return myRequest({
      url: "/tz/overLimit/eliminate",
      method: "post",
      data: params,
    });
  },
  start(params) {
    return myRequest({
      url: "/tz/specification/start",
      method: "post",
      data: params,
    });
  },
};
